<?php
namespace app\user\controller;
use think\Controller;
use think\facade\Request;
use think\captcha\Captcha;
class Xiazai extends Controller{
    protected $sys;
    public function initialize(){
    }
    public  function app_dol(){
        if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone')||strpos($_SERVER['HTTP_USER_AGENT'], 'iPad')){
            $url= "http://www.ttjiayuan.cn/ios.ipa";
            $str="";
        }else if(strpos($_SERVER['HTTP_USER_AGENT'], 'Android')){
            $url= "http://www.ttjiayuan.cn/a.apk";
            $str= "http://api.k780.com:88/?app=qr.get&data=".$url;
        }else{
            $url= "";
            $str="";
        }
        $sys=getsystem();
        $this->assign('sys',$sys);
        $this->assign('str',$str);
        $this->assign('url',$url);
        return view();
    }
}